package quartz_exercise.connectmysql.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import quartz_exercise.connectmysql.service.ConnectService;

@RestController
public class ConnectController {


    @Autowired
    private ConnectService connectService;

    @GetMapping("/beginTask")
    public String beginTask(){
        return connectService.beginTask();
    }

    @GetMapping("/endTask")
    public String endTask(){
        return connectService.endTask();
    }


}
